package com.service.impl;

import com.bean.Answer;
import com.bean.KillNode;
import com.mapper.AnswerMapper;
import com.mapper.KillNodeMapper;
import com.service.AnswerService;
import com.service.KillNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KillNodeServerImpl implements KillNodeService {

    @Autowired
    private KillNodeMapper killNodeMapper;


    @Override
    public List<KillNode> checkAll() {
        KillNode killNode=new KillNode();
        return killNodeMapper.select(killNode);
    }

    @Override
    public int insert(KillNode killNode) {
        return killNodeMapper.insert(killNode);
    }
}
